package com.team.star.utils;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseCode {
    SUCCESS(200, "成功"),
    ERROR(500, "失败"),
    PARAM_ERROR(400, "参数错误"),
    FORBIDDEN(403, "禁止访问"),
    NOT_FOUND(404, "未找到"),
    REQUEST_NOTE_EXIST(1001, "数据已存在"),
    REQUEST_NOTE_NOT_EXIST(1002, "数据不存在"),
    REQUEST_TITLE_EMPTY(1003, "标题为空"),
    USERNAME_IS_EMPTY(1004, "用户名为空"),
    USER_NOT_EXIST(1005, "用户不存在"),
    PASSWORD_ERROR(1006, "密码错误"),
    PASSWORD_IS_EMPTY(1007, "密码为空"),
    USER_EXIST(1008, "用户已存在"),
    ROLE_INFORMATION_IS_EMPTY(1009, "角色信息为空");
    private final Integer code;
    private final String message;
}
